Add test for the case that the list of engine hosts partially replaced