fixing controller tests