Added test for trigger API call