passing test for 2
passing test for 3
refactored var expectedFactors into a method in the test class