organizing testbroker and worker into functions
resolving conflicts