Fix pages controller test