Fix entity repository specs