Use promise support in mocha.

Change-Id: I6cfbd72554467669582e5d82a01a22c8565c2bcd