Unit tests for config file and config functions