Fixing rat issue with a test script