added complete test set for view_events and delete_events