add Deferred tests using Mocha
Merge pull request #237 from wise9/feature/mocha_deferred

add Deferred tests using Mocha