add test for submit and prevent default action