unit test for case-insensitive sort