Tests (and fixes) for nonlinears