Ability to define custom functions with callback + tests