Converted unit tests for dojo/Deferred