Effect of nonindependence of sample observations on some parametric and nonparametric statistical tests