Test for Future.onFailure
Test for Future.onComplete