Updated the tests and added a logout route