Auto-reset session in tests.

/cc @phgross @senny