Fix portability of a test.