Re-added run_test script, updated to be compatible with Xcode 5