Added unit tests for different AppleScript output cases