Strictly speaking, shouldn’t this be `%r{^.*\.test\.gov\.uk$}`?