Tests referenced wrong objects.

Didn't really influence tests, but was still wrong.
Added tests for triggers.