added tests for load_dir() method