Add case-folding test for Python 3