addRepository provides new repo with link to entity manager
writing tests