Run tests for WikibaseQuery

Change-Id: I50afc4ab389eec25ee186eb40f7274de98a66325