Add tests for PageComponent