Fix some tests for ppc or other big endian systems

If all this is not too ugly I'd like to fix even more tests for big endian systems.