added controller unit tests