Add tests of PanelComponent