tests for threadprovider