fix tests for ruby 1.8.7
Merge branch 'master' of github.com:sparkapi/spark_api