Convert dojo/_base/declare tests to intern

I'm not sure what you mean by that. `window.tests` is `undefined` for the very first test and `declare` works just fine. Am I missing a detail?