writes controller tests for application