unit tests for application controller