added unit tests for nFactorial