tests: add policer test helper