stubbing preventdefault