Added UnitTest for Database reconnect