Fixed too strict tests for cookie setting that broke on werkzeug changes
Added appcontext_pushed and appcontext_popped signals