Missing the definition of resolve function on q.module.d.ts. Added tests
Merge pull request #471 from Diullei/master

Missing the definition of resolve function on q.module.d.ts. Added tests