add test and destroy handler
add destroy method, should in the future remove the dom element too