Test script using testsm