Made logout a get request and added a test.