Move beforeNotify to be just before requests are sent, add tests for modifying

payload