Use bokerFactory in Test to create broker