Added delete functionality and testing