Added prevent default funtion to mocked events