Tag printing with debug to infer purity
Add non-debug purity unittest