a test for a submit event on a form