fixed errors in rake test