Bug 995291 -[CostControl] Add unit test

What a re you doing with all this setup?