remove test generated index at each test, delay delete of a pointer, creating an issue during tests on a few architectures