testing using sinatra for a web api