changed method name and added tests for elements and sections