disconnecting database test case