add new tests for login/logout