added test for structure