Delete function add and tests passed