with_global_filter test helper