Fixed logout functionality and basics tests.