Add login and logout tests