Add test for GH-88. Closes GH-89.
Use lstat instead of stat for symlinks