Issue #292 and related to issue #195 . Considered update and create events as different cases. If updated, check all visit_numbers. Added tests accordingly