Add test codes for triggerSync