factored out config processing state to a ProcessState object
make the cli test behave when run by py.test