Change test.js to simulate click on submit button