add test and rakefile