Goodness-of-fit tests based on the empirical characteristic function