added  test for db reconnect