tests: Minor const improvement