fix index tests with a tearDown