Fix parameters
Fix test with multi-threads