Fixed tests on Mac OS X (10.9)