Added test for delete and fixed typo