Fix two test cases for Python 3.3