Add Rakefile and test infrastructure