Fix tests for sinatra

I hope this fixes #387...(locally `rake spec:sinatra` was OK)