add tests in CMake