Tests for check_dir()