Add setenv.
Add notes.
Add a minimal test for issue5227

https://code.google.com/p/go/issues/detail?id=5227