fix test of path validation