Add spawn/coro functionality, clean up tests