Added a CMake option to generate or not the test.