Main: test for threading