Testing Causality for High Dimensional Data