Convert dojo/_base/declare tests to intern

Should this have an `.isInstanceOf()` check?