Added unit test for Database Connection factory.