You can exclude Company B because they are all HCEs. You can always exclude HCEs without failing coverage. Again, make sure the document reads correctly. In some documents, you have to choose to exclude compensation from a related employer whether or not it has adopted the plan as a participating employer.
Now if Company B had a plan and was trying to exclude Company A, THEN you would fail the coverage test.