Fixed tests so they run on OS X with Python 3.2.