controller unit testing