Fix Rakefile so Travis test failures are properly reported

Currently, all travis builds succeed via the `test_for_target` command since `Rake::Task.invoke` doesn't return false if tests fail.