Testing for Families of Distributions via the Fourier Transform