[test] Add test for document insert and destroy