fix broken specs on older ruby versions