Added a function to test the connection to the event replication DB.