unit test for controllers