Improved Sentry test script