Add test for delete API