Added white-box tests for controller.