fix check for symlink path in unittest