Added Directory tests.
Change typo in method name "clear"