Function to verify if event exists
Unit testing