unit test for Async.withTimeout()