Fail Unit test Part 2

Edit the codes to calculate wrong D statistic