add snippet for TestMain