unit tested triggers.go