Add helper function while there's no new release of salt-testing.