Failing tests for iterators hasNext function