fix some bugs
Add yaml test script