Testing a conditional form of exogeneity