Added a path and backtracking, plus associated tests.