Fix portability issue in the test suite.