compute_smooth: Allow more complicated models. Fixes #209
Add tests for compute_smooth formulas