Fix test/CMakeLists.txt when building without visualization