Add missing tests for pages controller