added unit tests for model#get_events