add unittest
Merge pull request #5407 from ticoann/add_unittest_multicore

add multicore unittest