adding error templates, test views, and tests