rewrites test's CMakeLists.txt