Added test for is_dir