Added FactorMain test class with 3 test methods and minimal FactorMain
code renivation