added xctool script for command-line testing