[Tests] Finished tests for lib/config.
[Lib] Fixed some glitches in config.