entity repository tests