added controller tests.