Make tests compatible with older rubies.