Add thread stress test

Related to #21