test sinatra endpoint