Refactored tests to use wd promise-chain api
Merge pull request #1732 from sebv/wd_promise_chain

Converted test to wd promise chain api.