Test asynchronous tasks