modified falling_factorial and rising_factorial tests