Add abstract entity repository. Continue  API database adapter tests.