added unsafe thread test