make beaver slightly more amenable to test mocking and sort of fix the broken zmq test
Merge pull request #94 from anentropic/zmq_test_fix

sort of fix the broken zmq test
Merged upstream to testing branch again