param s/webhooks/with_webhooks - thanks @cyli

to remove any confusion with webhooks var used inside the function
empty webhooks to policies

that occur after processing all the webhooks. Added related tests.