tests: fix to run under Ruby 1.9.2dev