Various test case cleanup.
Provide Deferred interface to Promises