Add test for Entity Repository