Added test method for YAML file
Added test file and method for xml