Tests for linear regression with NULL handling