A control function approach for testing the usefulness of trending variables in forecast models and linear regression