Adding unit-tests for panel controlling as the old ones were unsuitable
Adding some more tests for testing panel controller code