parentDOM for tests

If parentDOM is defined but doesn't exist use document.body