Add unit test for SidePane and fix a couple problems found in the load controller.