Add integration test for login and logout.