Fix tests to work with Xcode 5

This is a breaking change. The test script will no longer run with Xcode 4.5.