Testing delete function