Add unit tests for internal utility functions
Implement helper functions needed by ConfigBase