adds error message when connecting to broker fails
fixes worker tests and swizzling methods