template-test args changed somewhat to make a bit more sense

refactored YAML loading logic into a function that generates a YAML Parser