Bug 995291 -[CostControl] Add unit test

Why are we testing a function fail?