test for modifyList