I'm not sure how to do that with tasks. I tried just pulling it out into a separate method but that causes all the tests to fail.