Fixed tests for OSX 10.6.

Related: https://github.com/facebook/tornado/pull/777