Fixed #23768 -- Rewrote template tests as unit tests

wrap docstrings at 80 chars