Revise CMakeLists in test.