Move the test type out of the function and into the anonymous namespace
to fix C++98 builds.