Cleanup specs add more robust matchers for the generated template

* added some missing specs for the config options
* custom matchers for the generated template
* some other minor cleanups in the specs