Adds tests for login and logout.