Change delete() to remove() in the test
Change delete() to remove()