fix spec to not throw syntax error in 1.8.x