Simulation: improve test for _generate_replicas (replica groups)
Add a test for simulation._EventFactory.__init__