adding querywidmasterserver test function