Updated the page types controller
Added an additional test for the page type repository