Fix pattern test in source/metric group creation