delete operator test. Please see the source code for more comments.