added thread safe tests
Merge pull request #31 from Shopify/thread_safe_test

added thread safe tests