Implemented controller tests