Fix test for Python 3 annotations.