Method getMTFromParentTag has been finished. All test cases added.