fix bug where user could not log out trough API calls
add password recovery to tests and format tests altogether