update test
add destroy function