Add unit tests for nFactorial