Fix tests which are hardcoded for little-endian CPUs