Improves ByteOrder struct and its tests