fix tests on older rubies