added test cases for dir_dict() and xml functions