Could you include the script to broadcast the message directly in the test? It's only being used once, and I think it will simplify this patch considerably. That is, unless you plan further tests that will use this script, or have other scripts that would belong to the System class you've created?