Fixed permissions in test script.