working controller unit testing