controller unit tests