add unit test to check if we detected byte order correctly