refactor method for panel list creation
set up code coverage
add tests for arrays vs objects
add tests for collapsing elements