Move trigger event helper function to test main
Finish basic tests for action dispatcher