Test that callback was invoked.