Fixed spec tests on Ruby 1.8