Add a test for async_threshold