Fix entityrepository test because of changed behavior of doctrine

$reflClass is required for newInstance() in some PHP versions (see doctrine/doctrine2#530c01b5e3ed7345cde564bd511794ac72f49b65)