added thread safe tests