create MarkerParentModel.setEvents function and add its test