fix tests related to float infinities (closes #3175)