Fix tests to work with Xcode 5

This is a breaking change. The test script will no longer run with Xcode 4.5.
Merge pull request #35 from gcurtis/fix-tests-squashed

Fix tests to work with Xcode 5