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

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