test order in both binary and hex
expose hex encoding also