fix test issue on ruby 1.8