Add base class for tests database repositories