add egcd and modinv unit tests