hasNext test for one element long collection passing