add spec for multithreaded env