AttachDom tests and created getter for Component/Container

- [ ] @Aintaer