Sri Lanka had a disastrous start to the tri-series, but are peaking at the right time