support test init method invoked in testing thread