Add Rakefile and tests