Fix class name reflection tests on Python 3