Asynchronous test functions with continuations.

TODO: Test coverage for error handling in wrapped continuations.