fixed thread tests. It works to add 10 files by 10 threads at the same time! :D