AttachDom tests and created getter for Component/Container

- [ ] @Aintaer 
Same `affix` usage