[CI] Changed CMake scripts for tests