Implement tests and doc for createCallback