Added test case for database adapter abstract service factory.

Change-Id: Id77938e0298d3b214c40db7f2325f5b1efd14d81