Close auth session
Tests refactoring