Added delete and tests for delete