added test for Struct.extend