Execution Mode
If you want to simulate execution modes other than INSIGHT_MODE_RUN, you can set this using the insightsetmode function, e.g.
insightsetmode('STATS')
In test mode, insightgetmode will return whatever was passed to the last call to insightsetmode.