Updated test cases of controller.