Extend test for EJB injection (#11479)

The test now also injects a component into which an EJB is injected.

Change-Id: Ib6be42fe92b173ee0281d5c8bb404c4166a2f4a2