Conditionally define DS.

My app test suites trigger notice errors on phpunit startup without this change. I think similar changes are needed in bake's test suite.

The notice error from PHPUnit isn't super helpful as you can see [here](https://travis-ci.org/cakephp/bake/jobs/45444120)