Make test-button work for multidomain configurations

When validating the configuration, the domain is split at ',' and
each part will be validated individually. However, the actually bind
will use the original domain string with ',' which doesn't work.