Add tests for 'SET INSERT_ID' and INTVAR_EVENT.