Authentication controller tests