practice of testing and switching endianness