Fix tests which are hardcoded for little-endian CPUs
Merge pull request #178 from manisandro/endian

Fix tests which are hardcoded for little-endian CPUs