update tests #2 and struct hash compatibility