Added t-fac_ui test code and changed gmp.h => mpir.h.