NEW adding test helper for testing triggering before response event
UPD adding test for dispatcher triggering before response sent event
UPD adding triggering of before response sent event
NEW adding testing helper for testing after response sent event
UPD adding test for after response sent event being triggered