Method to test callback.