add DM.detach tests
rename tests
add return value type for DM.detach JS DOC section
fix in demo