tests: fix portability problem