Using mocha's built-in support for promises. Upgrading libraries