Test cases for entity component.