Added unit test for trigger.