Add a callback to test asynchronous code