hasPath(path) returns null in case path not found, instead of InvalidPathException. Tests changed accordingly.