Added inline test for subcomponent