so we should have two test functions. One for the good case and one for the error case like you've got. Each should have two different mocked functions. One calls the success and one for the error case.