tests: use precompiled regex
tests: use non-empty hostgroup for tests