trace() and testing asynchronous callbacks and concurrency