fixed test failures

add jenkinsCompany as the origin company Id and only check if companyId and sharedCompanyId are the same in production and error out if that is the case