Add endian tests
Support endian convertion