add concurrent unit tests

Pls review it carefully.