handle files/directories in read_test_case