add test of delete and implement delete for list