Minor enhancements
Added CAS replication test