updating error map for logout endpoint
replacing many tests with mocking