Config tests and config cleanups+fixes.