Added testing for endianness, binary recording