making tests ruby 1.8.7 friendly