unit test for db connectivity