added test unlinking directory

#3157