Fix a couple of issues with the DOM detection when intanciating container and fixed a couple of test cases in the ui package.