thumbnail test script and fix for mail test.