Adding back in unit testsgit st

This was in the other pull request (Getting rid of test sh #430), but must have been clobbered some how.    
Moving each `config` to inside the functions that use it would work, but this isn't an ideal solution.

Better to define the `os.environ['SECUREDROP_ENV']` based on command *before* the `import config`