Add specs
Make specs pass on Ruby 1.9