add test for _failure_callback