Improve test coverage for WikibaseRepo factory

Change-Id: I0fdf90b018a8a4ea288d4d778c058d53074f894c
Merge "Improve test coverage for WikibaseRepo factory"