Updates rake task test to use Rake::TestTask correctly.