Refactored tests to use wd promise-chain api