Add test for pages_controller