Add some tests for the locale library