Refactored functional test for existance of list items.