Changes how to login and logout on test.