tests: minor change to improve portability

Previous syntax failed on Mac-OS X.