Fix diff tests on ruby 2.0.