refactor equals in path
getdatapath in object now of type path.
fix test