Test script for QM,SM,TM