Ireland have agreed to play a second Test match against Sri Lanka next month, replacing a pair of scheduled ODIs.