Testing procedures based on empiciral characteristic functions I: Goodness-of-fit, testing for symmestry and independence