attachDom: updated jasmine tests