add tests of cleanupListOfValues