minimum failing example showing how expectation are incorrectly passed when sinatra error occurs