share with originCompanyId check

added a check to see if the parameters for originCompanyId and sharedCompanyId are the same. returns 500
same Company API test

added test to expect a failure if same company is used to share with