refaktor broker test
fix test