fixes #2906 - test are broken on 1.8

This PR fixes the tests on Ruby 1.8. 
 - SimpleCov coverage reports do not work with a warning, not an issue IMO
 - the lambda in apipie options needs check. It was failing (in Ruby 1.8) with  "LocalJumpError: unexpected return" on line 88 an it is not clear to me why.