testing the confidence interval calculation