Add intern unit test for dojo/Deferred

I added an unit test for dojo/Deferred, I'm not pretty sure the way I made the "throw" assert. Here a snippet.

    assert.throws(function() {
           this.parent.deferred.reject({}, true)
    }, Error);