Adding event handler tests