Fix argument for isSymlink, and fix unittest for it