Fix pages controller tests