test getAllPathsWithOneStepNoCycle passed