Fixed problem with losing hash value in structure metadata object during unserialization
Added tests for recently implemented metadata hashes