enhancing macgpg2 test script