refactor how currently tested broker is detected