Testing both success and failure blocks were called correctly.