Add macro guard for templight tests