Added query timeout example and tests