Create logout route and tests