Moar tests

adds complex templated when condition w/o explicit templating
added a couple of with options with undefined/templated vars