Put tests initialization to separate thread to avoid signal propagation during compilation.