Refactor require

* Fix `require`
* Rakefile: default task to test, use gemspec to read version