adding unit test for async worker failure callback