Added preventDefault tests + helpers refactoring