fix thread storage tests