Fully updated f.trigger method
Updated unit tests for trigger method