Fix for #1900
Don't run tests if scipy is not present
Merge pull request #1903 from nden/linear-models-deriv

Fix for #1900