robustify test_block_master_ports
Merge pull request #319 from Incubaid/robustify-test-block-master-ports

robustify test_block_master_ports