Added events to replicaset for ha and ping and added test coverage