define and test callback signatures