Generator: Added generate_factorial() test