Fix lowess for constant inputs.

Fix with tests for #1798.
I'm not sure about this construction of yielding tests.
what information does this print out when a test fails?