Fix some bug with concurrency access due to threading.
Now all test run without pb... at least until now...