Add test for HasNext property

Add passing detectMatches_hasNext_next_next_next(required by prm4j-sync)