Fixed code to make sure acknowledgment callback exists before invoking it.
Running unit and integration tests.