Nonasymptotic one-and two-sample tests in high dimension with unknown covariance structure