Fix connect in messaging test