factorial test correction