Adding tests for logout and modifying user

- route logout removed the ?? at the end
- check if there is someone to logout, otherwise return 401