unit test for pages controller