add thread safe test
railtie