fixing specs, cleaning up deprecation warning