Some test code for exercising callbacks.