AttachDom tests and created getter for Component/Container

- [ ] @Aintaer 
Don't need this if you use `affix`