Added tests for user login and logout.