Move the test type out of the function and into the anonymous namespace