adding test for thread model