fixing a bug in post_delete_test