functional controller tests