zeromq context wrapped for testing