fix failing test and add test for event failure