delete instances after test

when testing with constrained memory, deleting an instance
after a successful test leaves more resources available
for the following test.