TST: Use almost_equal for float equality testing
MAINT: Use simpler formula for 0-order gains