Added tests for form_valid