Add basic unit test for instrument callbacks.