Add tests for BaseService. Refactor ZeroMQMedium.