Make the tests compatible with ruby <2.0