add tests for Struct.
simplify #initialize (still calling from_hash) twice