Fixing spec tests on older ruby