implements tests for logout-mechanism