Fixed deprecated function module_exists(), tests working again.

Removed deprecated function module_exists, tests now successfully pass.
The trigger module is no longer in core, so maybe we should just remove this and integrate with rules when it's ready... separate task.