Add tests. Remove abstract entity adapter.