Add helpers for node construction to spec.