Small bugfix in Utils.findPath() and added tests for it