controller unit test