fixing Rakefile and Resource test