CallbackNotify: improve the API, add the test/example