controller tests corrected