Adding more test for the threads, and building code