Updated testcase to disconnect from the db first so it honors the new
connection.