Fix regex typo
Add table test of all possible forms of linear function