Add first 2 unit tests + change app config

It seems that the correct way is not to use environment variable but
app.config. Environment variables are fine but they are saved in
app.config now.