database connection function created and running tests on it ...