added tests for structure