Added query timeout to test query.