ruby 1.9: fix test case