addCompany and unit tests