refactored controller tests into seperate files