Fixed deprecated function module_exists(), tests working again.

Removed deprecated function module_exists, tests now successfully pass.