Add some tests for _EventFactory.get_random