Fix `dot.path' and add tests