Conditional Independence Restrictions: Testing and Estimation