test document is deleted when test is finished