Added a test to verify the settings validation functions.