add ability to write environment properties

```test_not_write..``` is a bad name for test