Fix deprecation warning on specs
Fix specs syntax that fail on travis