Fix pathToString

This seems to be the bug in the original test-framework patterns code
Update tests
Add another test
README