AttachDom tests and created getter for Component/Container

- [ ] @Aintaer 
Should use `affix()`