Goodness of fit test: a comparison of the main proposals of literature and an analysis for discrete random variables