Fix deprecation specs