Fixed a bug in the test that would cause any Isolate using the library to hang indefinitely. Switched most usages of futures to async/await syntax.