standardize almost_linear code; reduce linear_coeff tests