Fixed error in unit test that was caused by renaming of the EmailTarget.