I would move the formatter out of the Mix task and test it properly in isolation!