Testcase for controllers