wrote test for delete and made it to pass