Add unittest hook into libdruntime.