fix spec to get it work under 1.8.7