Test for submitForm