Fixed osascript path to me bugs in testcases