making sure hashing structs works as expected