adding yaml and unit test

Fix missing #2943