Updated variable name and factorial test