Add failing test for #1493

The HOME environmental variable is overwritten by 'docker run'.
Fix test
Make sure that non-default ENV's still get through
Apply the same trick to the PATH, container and HOSTNAME vars.