Unit test validating input field send back error to template