replace chain test