testing factorial and binomial