AF Cookie should be reused within the context of same request.

Also adding some more functional tests for af.
we discussed changing this to use the context accessor