Added tests in CMake