adapting test case for issue #407 to work with ruby 1.8.7