Writing session controller tests