Clean-up ItemContentTest and Wikibase.hooks.php

Change-Id: Id1831e69486c5f79c1fffddb50d1cb64bb19aaad
Merge "Clean-up ItemContentTest and Wikibase.hooks.php"