test code for zeromq