Tests forpath.
Move implementation in own package.