MOAR unit tests

* Mock session handler
* 100% coverage for `wc-coupon-functions.php`
* 100% coverage for `wc-notice-functions.php`
* 100% coverage for `wc-formatting-functions.php`
* Webhook factory as a reference implementation for other classes that use a custom post type (coupons, orders, products)