Test class for controller.