added tests with sharing threads