Goodness of fit test: Poisson and normal distributions