Refactoring test.
Make proxy setup sessions on auth.