Add tests for IFS

It is a bit tricky to test IFS, because the new process clear IFS
environment variables. I add a test helper `run_by_source` to run code
in the file directly.