Added tests for form_invalid