Finalize response

Override either res.send or res.end to wait for the store update
Fixed tests