added independence test for distributions