HW1:task1: Solved issue with deleting of element; added tests