Found a bug in delete...
Fixed for test3, and fixed a bug in delete