Fixes #199. Specify read access for pathToRoot

Modified the test to use anonymous access