fixing test failure. needed to handle replaceExistingValues flag