`path` will return the original input `path` with no extra `/` appended
-for path(-1) will still append `/` if not set and `1` and `-1` will be for path /some/path/
Added more tests for the path with anchor
included a test for the correct path parsing