test_callbacks.py: add unit test