tests for envfile writing