Cleanup and tests for DefaultLocalizationProvider