test for structure