#296322 by cwgordon7 andSenpai: Fix horribly broken trigger module and add tests so we don't do it anymore.