only include threadsafe tests when using threadsafe