(bug 38201) Refactor Sites related wikibase tests in frontend

* Control configuration data rather than assuming some.
* Also test certain sites to be set instead of just checking for unknown sites.

Change-Id: Ia727a722e4afd53c196433daa76784d1f6134ff1
Merge "(bug 38201) Refactor Sites related wikibase tests in frontend"