simplified test code using hasItem() and made test data more consistent