Fix testing in ruby 1.8