tests for undestroy and destroy