added new tests for thread