Converted unit tests for dojo/Deferred

Based in previous pull request, please take a look the asynchronously chained then(), I'm not completely sure if this small test is well implemented.