fix test failures on big-endian systems