Added testing of subgroups

Regex subgroups are now tested
Added subgroup key and values to sample YAML files and template generator