Refactored test
Login/Logout logic