test scalar endianness conversion