Tweaked test to avoid numerical imprecision (discovered via CI)