Convert dojo/_base/declare tests to intern

I know we're only doing a 1:1 conversion, but shouldn't this have an `instanceof` check?