allow the config path to be loaded from an environment variable
improved the tests