[Wikidata-tech] Improving leaky test cases