Improve mocha test configuration.

Change-Id: I96305e42e706ca35ca2df9899d2d93940f439ade