unit test controller