Fixed #23890 -- Silenced numpy DeprecationWarnings in template tests.