Fixing the use of 'done' in tests.

Done removes the global error handler, which means any
exceptions thrown in async promises wont get logged as
failures. Make sure to use done at the very end of all
tests.