Fix unit tests for reading configuration