Fixed a bug when setting a config var before getting one
Deletes config cache after each test if it exists.
Merge pull request #851 from ostcar/fix_config

Fixed a bug when setting a config var before getting one