added data validation and dummy event testing