Model testing for causal models