Properly test isInDOM without helpers.render