Testcases now close all their database connections properly. Previously we got errors regarding too many open connections from the databases in the tests.