A class of goodness-of-fit tests based on a new characterization of the exponential distribution