Add test suite for naoutil.broker. Fix a bug in the module.