initial commit of Path#toCanonical
added tests for api methods