Silence Global template lookup deprecations.

This removes the remaining global template lookup deprecation warnings while running tests.