update replica test to check for replica count before and after node leaves via command script