[TESTCASE] Added 'alert' handle and Fixed preview test script