fixed tests to work with ruby1.8