Skipping aggregate on secondary tests unless connected to a replica set