Add ExternalIdKeyFactory instance in tests

The ExternalIdKeyFactory has been introduced by this change id
I64db5ed5256564dbc03952e9721615f42212ad48.

It now needs to be provided in the tests.

Bug: Issue 15834
Change-Id: I8525e691424f4b908b909d56c37de2c724785aef
1 file changed