Add test for dup insert cleanup check