+],[
+ "\4\21\0\1",
+ 1302,
+ "0037",
+ "67\0\0",
+ "\0\0\0\0",
+ "\0\0\0\0",
+ "\0\0\0\0",
+ "\0\0\0\0",
+] ];
+
+foreach my $tag ( @$tags ) {
+
+ ok( $hash = Biblio::RFID::RFID501->to_hash( $tag ), 'to_hash' );
+ diag dump $hash;
+
+ ok( $bytes = Biblio::RFID::RFID501->from_hash( $hash ), 'from_hash' );
+ my $orig = join('', @$tag);
+ cmp_ok( $bytes, 'eq', $orig, 'roundtrip' );
+
+ diag dump( $orig, $bytes );
+
+}