example: update tdd.example.test_main to take a callback