Added tests to fix the message for hasItems
fixed case where hasItems was trying to iterate over non-iterables (hope this method is working)