Added delete test function