Update Rakefile.
Add some tests.