Make default task in Rakefile test.
Changes to the ported code to make it work as a gem.