Fixes #3687 - Tests are compatible with ruby 1.8
Fixes #3702 - Ruby 1.8 compatible fix for arrays
Fix tests on ruby 1.9
Merge pull request #43 from ares/bug/3687

Bug/3687