Create test_linfit.py

Unit tests for linfit.py