adding yaml and unit test
Merge pull request #2944 from duythien/dev/yaml

adding yaml and unit test