Testing for page controller in objective c