added login and logout tests