Added test function to check if a event was stored