Add unit test of AddDirectoryTask and GetDirectoryTask.