add check to ensure mock root has been initialized