Nonparametric two-sample and C-sample tests in presence of heteroscedasticity