[test] added functional test to create a new thread