Revert "removed delete to test function"

This reverts commit 64b26b2ffbee3bacc3791d69d5ba15a2512d04bf.