Finished unittests, plus logout