prepared test for new index duplicate error response