fixed unit test for largest factor