initial controller with test case