Tests and rakefile