lib: added tests for the config.go file.