This commit adds a basic test to check callbacks work.
This can also serve as an exemple.