Add unit tests for reading configs