Fix tests on big-endian