s/CMAKE_TEST_GENERATOR/CMAKE_GENERATOR/g
Propagate CMAKE_GENERATOR_TOOLSET through the test hierarchy so that all tests can build with the selected generator toolset, if any.