a api test for sinatra