Switched email tests to the object manager.