Added test cases for controllers.