found a cap() replacement in GroupByTest. Added another test case to CyclicPathTest which tests Path.isSimple().