MAINT: add tests for the construction of an initial feasible path and fix a bug uncovered by the test