use new notify_failed function signature in tests