Adds tests for panel structure

Fixes #51.
Closes #53.
Merge pull request #53 from zacechola/panels