Remove use of none-standard constant

TESTS isn't used in the core anywhere
Remove the one use of CAKE

there _aren't_ any core bake tasks any more