refactored FunctionalFuture_failed tests to use mockito when appropriate