Update test helpers to exercise Linux/Mac line endings
Add basic handling of external functions