Create parentDOM for tests

If parentDOM is defined, but doesn't exist add it to body.