add callback and test for create