Added unit tests for login/logout.