Test case basic and test case of Directory.name