Adjust specs to solve deprecation warnings.