Adding test cases for replica