fix test errors
cleanup factorization test - might be broken >INT_MAX though