Implemented getComponent()

Added 2 new components to test getComponent() and attached().