Add some tests for getUnameFromPath.