fix testing on ruby 1.8