Adding testing for the logging callback.
Ensuring we have unique ports for all tests.