Fixed testHelpers variable getting replaced and 'submit' event not passing functionName