Updated factorial function testing