create functional test for login/logout