Added test for scan_and_mark
Refactored test_zmq_pub_send