fix tests with async notification

fix #100
yep i was thining about using `app.after_request` hook to save it once per request, but didn't want to change it too much atm