added test to validate command replication