add some obnoxiously difficult tests: test_dir_class, test_dir_instance