PHP Unit test for ApiAddMediaTemporary (covers image duplicate path)