main controller unit test