Add manual webservice test.
Fix getRegisteredQuery bug.
Some bugfixes.