TST: special: account for floating point limitations in cos-integral test

Should fix gh-3189