adds error controller tests