I don't thinnk thread locals are appropriate here, it would be easier to read if you just created 1 cache for each test. You just have to call defineConfiguration on each manager.
Also, the test has "SharedCacheLoader" in its name, so I wouldn't expect it to test the non-shared case at all.