Added tests, fixed gemspec