made webtest thread safe