add valid check for yaml parameter annotator and add testing #188