fix failure_message deprecation warnings