Added logout functionality and request test.