Abstract entity and repository tests