A class of location-scale nonparametric tests