* Change string compare to a path compare * Add some tests * Fix problem with slashes * Allow injecting of path * Add a simpler test * fix: remove unused variable ref #996