Rewrite BroadcastTest to a simpler and pep8 compilant version.