Improve coverage of the EntityRepository