adding querywidserver test function